@import '../../../../common/variables.less';

.visualComponents{
  .is-message-box{
    z-index: 10000 !important; // 防止被别的弹窗挡住
  }
}

.visualComponents_theme_dark {
  .el-dialog__header {
    background-color: @dialog_header_bg_color_dark;
    color: @text_color_dark;
    margin-right: 0;
    .el-dialog__title {
      color: @text_color_dark;
    }
    .el-dialog__headerbtn {
      .el-dialog__close {
        color: @text_color_dark;
      }
    }
  }
  .el-dialog__body {
    background-color: @dialog_body_bg_color_dark;
    color: @font_color_dark;
  }
  .el-dialog__footer {
    background-color: @dialog_body_bg_color_dark;
  }
}
.el-dialog.animation .win-index-wrapper-fade-enter-active {
  animation: anim-open 0.4s ease-in-out;
}
.el-dialog.animation .win-index-wrapper-fade-leave-active {
  animation: anim-close 0.3s ease;
}
@keyframes anim-open {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes anim-close {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
.disabled-mask {
  pointer-events: none;
  .el-dialog {
    pointer-events: auto;
    .win-index-wrapper {
      pointer-events: none;
      background: none;
      & > .winIndex {
        pointer-events: auto;
      }
    }
  }
}
